<?php

namespace backend\models;

use yii\db\ActiveRecord;

class Warehouse extends ActiveRecord{

    public static function tableName(){
        return '{{%warehouse}}';
    }

    /**
     * @获取创建人
     */
    public function getCreator(){
        $userInfo = \common\helps\tools::getloginUserInfo();
        if($userInfo){
            $userName = $userInfo->userName;
        }else{
            $userName = '';
        }
        return $userName;
    }
}